//工具类
const cbStatusData = function(res,status,data,msg){
    return res.status(status).json({
        data:data,
        status:status,
        msg:status===200?'success':msg?msg:status===500?'error':''
    })
}

module.exports = {
    cbStatusData
}
